<template>
  <svg
          class="icon"
          :style="{
      color: color,
      fontSize: size + 'px'
    }"
          aria-hidden="true"
  >
    <use :xlink:href="'#' + icon"></use>
  </svg>
</template>

<script>
  export default {
    name: "rgb-icon",
    props: {
      icon: {
        type: String,
        required: true
      },
      size: {
        type: [String, Number],
        default: 20
      },
      color: {
        type: String,
        default: "#000"
      }
    },
    data() {
      return {};
    },
    mounted() {},
    methods: {},
    computed: {}
  };
</script>

<style scoped>
  .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
</style>
